package com.example.foratm;

import com.example.foratm.controller.LocalCacheUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.lang.reflect.InvocationTargetException;

@SpringBootApplication
@CrossOrigin(origins = "*")
public class ForatmApplication {

    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException, IllegalAccessException, InvocationTargetException {
        SpringApplication.run(ForatmApplication.class, args);
        LocalCacheUtils.getUnit().put("海洋石油船舶中心","3");
        System.out.print("值--------"+LocalCacheUtils.getUnit().get("海洋石油船舶中心"));
    }

}
